<?php

class module_u_search extends a_base_module implements i_hook_pre_controller, i_hook_post_controller, i_hook_post_controller_constructor, i_hook_post_system, i_hook_base_controller_constructor {
    const SEARCH_PARAM_DIVIDER = "~";
    const SEARCH_PARAM_STARTS_WITH = "p~";
    const SEARCH_PARAM_ID_VAL_SEPERATOR = ":";
    const SORT_TYPE_PARAM = "sort";
    const SEARCH_TYPE_PARAM = "search";
    const DEFAULT_PER_PAGE = 3;

    //p?1:desc

    public function __construct($basic_info) {
        parent::__construct($basic_info);
    }

    public function exe_pre_controller() {
        Module_Extended::load_helper("search_param", "search");
        $service = new service_l_search();
        $sorts = $service->get_params(module_u_search::SORT_TYPE_PARAM);
        $this->smarty()->assign("sort_params", batch_simple_data($sorts));
    }

    public function exe_post_controller() {

    }

    public function exe_post_controller_constructor() {

    }

    public function exe_post_system() {
        // trace();
    }

    public function exe_base_controller_constructor() {

    }

}

?>